package com.shrcl.engineerprocess.domain.impl;

import com.shrcl.engineerprocess.domain.TSCServiceType;
import com.shrcl.engineerprocess.domain.TSCServiceTypeOptionItem;
import com.shrcl.engineerprocess.domain.TSCServiceTypeOptionItemDAO;
import edu.fudan.mylang.pf.BaseDAOService;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.stereotype.Service;

@Service("com.shrcl.engineerprocess.domain.TSCServiceTypeOptionItemDAO")
public class TSCServiceTypeOptionItemDAOImpl extends BaseDAOService<TSCServiceTypeOptionItem> implements TSCServiceTypeOptionItemDAO {
  public TSCServiceTypeOptionItem create(final TSCServiceType serviceType, final Procedure1<? super TSCServiceTypeOptionItem> init) {
    TSCServiceTypeOptionItem _createAndAddtoOptionItems = serviceType.createAndAddtoOptionItems();
    final Procedure1<TSCServiceTypeOptionItem> _function = new Procedure1<TSCServiceTypeOptionItem>() {
        public void apply(final TSCServiceTypeOptionItem it) {
          init.apply(it);
        }
      };
    TSCServiceTypeOptionItem _doubleArrow = ObjectExtensions.<TSCServiceTypeOptionItem>operator_doubleArrow(_createAndAddtoOptionItems, _function);
    return _doubleArrow;
  }
}
